package com.fit.utils.dev.code.generation.utils;

import java.util.ArrayList;
import java.util.Collection;


/**
 * 空的list集合,只能取不能存,解决 代码生成器时,必须生成get/set方法临时创建
 * @author hcl
 *
 * @param <T>
 */
public class EmptyList<T> extends ArrayList<T> {
	private static final long serialVersionUID = 1L;

	@Override
	public boolean add(T e) {
		return true;
	}
	
	
	@Override
	public boolean addAll(Collection<? extends T> c) {
		return true;
	}
	
	@Override
	public void add(int index, T element) {
	}
	
	@Override
	public boolean addAll(int index, Collection<? extends T> c) {
		return true;
	}
	
}
